import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { VoucherService } from './voucher.service';
import { VoucherController } from './voucher.controller';
import { VoucherUsageLog } from './entities/voucher-usage-log.entity';
import { WalletModule } from '../wallet/wallet.module';

/**
 * 代金券模块
 */
@Module({
  imports: [
    TypeOrmModule.forFeature([VoucherUsageLog]),
    WalletModule,
  ],
  controllers: [VoucherController],
  providers: [VoucherService],
  exports: [VoucherService],
})
export class VoucherModule {}